package backend.Instruction;

import backend.Register.RISCVoperand;

import java.util.List;

public class RISCVli extends RISCVinst {
    private List<RISCVoperand> operands;

    public RISCVli(List<RISCVoperand> operands) {
        this.operands = operands;
    }
    public RISCVoperand getOperand(){
        return operands.get(1);
    }
    public RISCVoperand getDest(){
        return operands.get(0);
    }

    public void setOperand(RISCVoperand operand){
        operands.set(1,operand);
    }
    @Override
    public String toString() {
        return "li" + " " + operands.get(0) + ", "  + operands.get(1) + "\n";
    }
}
